package sunyu.service;

import sunyu.pojo.ShiroRole;

import java.util.List;
import java.util.Map;

/**
 * @author 孙宇
 */
public interface RoleService {

    List<ShiroRole> select(Map params);

    void insertRoleAndResource(ShiroRole record, List<String> resourceIds);

    void updateRoleAndResource(ShiroRole record, List<String> resourceIds);

    List<String> selectResourceIds(String roleId);

    int deleteByPrimaryKey(String id);

    int insert(ShiroRole record);

    int insertSelective(ShiroRole record);

    ShiroRole selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(ShiroRole record);

    int updateByPrimaryKey(ShiroRole record);
}
